package com.bj58.mis.apm.server.statistics.mapper;

import com.bj58.mis.apm.server.statistics.dto.optimize.SuggestFactor;
import com.bj58.mis.apm.server.statistics.suggest.parameterize.ThresholdFactor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 存储相关查询方法
 * @author: wangxw
 **/
@Mapper
public interface SuggestMapper {

    /**
     * 查询查询组合中间表，组合集合
     * @param cubeId
     * @return
     */
    List<Map<String, Object>> queryGroupColumns(@Param("cubeId") String cubeId, @Param("days") Double days);

    /**
     * 读取计算因子
     * @return
     */
    SuggestFactor getSuggestFactor();

    /**
     * 读取阈值因子
     * @return
     */
    ThresholdFactor getThresholdFactor();
}
